package com.yang.moyu.meta.quartz.job;

import com.yang.moyu.meta.quartz.base.BaseJob;
import org.quartz.JobExecutionContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Create by 10296 on 2022/2/10
 *
 * @Description: 测试
 */
public class TestJob implements BaseJob {

    private Logger logger = LoggerFactory.getLogger(TestJob.class);

    @Override
    public void execute(JobExecutionContext jobExecutionContext) {
        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");

        logger.error("Hello Job>>>>>>>>>>>>>>>>> 执行时间: {}", dateFormat.format(new Date()));
    }
}
